package com.deyuanyun.pic.pbf.controller.dto.defect.repair;

import com.deyuanyun.pic.common.util.ObjectUtil;
import com.deyuanyun.pic.pbf.domain.RepairOther;

/**
 * 5,其他修复方法表
 *
 * @author huanglw
 * @date 2016-6-27
 *
 * History: [修改人][时间][修改描述]
 */
public class RepairOtherDto extends RepairDto {

    /**
     * 是否完成该节点任务：0，没有完成；1，已经完成
     */
    private Short isCompletion;

    public RepairOtherDto(Short isCompletion) {
        this.isCompletion = isCompletion;
    }

    public Short getIsCompletion() {
        return isCompletion;
    }

    public void setIsCompletion(Short isCompletion) {
        this.isCompletion = isCompletion;
    }

    public void fromDomain(RepairOther domain) {

        if (ObjectUtil.isEmptyAll(domain)) {
            return;
        }

        // 赋值
        this.fromDomain(domain.getId(), domain.getCreateRemark());
    }
}